package com.lecyon.farm.vo.request;

import com.lecyon.farm.common.constant.CommonConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 登出Vo
 *
 * @author Yao Zheng
 * @Date 2019/9/3 16:53
 */
@Data
@ApiModel("登出Vo")
public class LogoutVo {

    @ApiModelProperty(name = "token", value = "token")
    @NotBlank(message = "token不能为空")
    @Length(min = CommonConstant.MIN_LENGTH_FIELD, max = CommonConstant.MAX_LENGTH_REMARK_FIELD, message = "token字段长度必须在{min} ~ {max}之间")
    private String userToken;

}
